<% if current_user.has_attendee? %>

<h1>Editar trabalho</h1>

<% form_for @work do |f| %>

<%= render :partial => "form", :locals => { :f => f } %>

  <p>
    <%= f.submit "Atualizar" %>
  </p>
<% end %>

<p>
<%= link_to 'Visualizar', @work, :class => 'button' %>
<%= link_to 'Voltar', works_path, :class => 'button' %>
</p>

<% end %>

